package Game;

public class Human extends Player {
	private GameController gc;
	private int x, y;
	private int turnColor;

	public Human(int color, GameController gc) {
		this.color = color;
		this.gc = gc;
	}

	public OneStep getNextStep() {
		return new OneStep(x, y, color);
	}

	public void notifyPlayer(int turnColor) {
		this.turnColor = turnColor;
	}

	public void notifyControllor(int x, int y) {
		if (turnColor == color&&!gameOver) {
			this.x = x;
			this.y = y;
			gc.notifyController(this);
		}
	}
}
